package com.ehotting.eaf.core.domain.system.api;

import com.ehotting.eaf.core.annotation.Excel;
import com.ehotting.eaf.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 黑名单ip管理对象 sys_ip
 * 
 * @author edsta
 * @date 2023-05-09
 */
public class SysIp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** 备注 */
    @Excel(name = "备注")
    private String content;

    /** 状态：N 失效；Y 启用；sys_yes_no */
    @Excel(name = "状态：N 失效；Y 启用；sys_yes_no")
    private String state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("state", getState())
            .toString();
    }
}
